<?php
# $Id:
require('header_admin.php');
$alert = $template['alert'];
$trigger = $template['trigger'];
?>
<script language="javascript" type="text/javascript">
<!--
function setfocus()
{
    document.loginForm.username.select();
    document.loginForm.username.focus();
}
function check_alert()
{
    var message = '<?=$alert?>';
    var trigger = '<?=$trigger?>';
    if(message && trigger == 1){
        alert(message);
	return false;
    }else{
        return true;
    }
}
//-->
</script>
<body onLoad="setfocus(); check_alert();" class="bodyimage">
<!--<div id="border-top" class="h_cherry">-->
<div id="border-top" class="h_blue">
<!--<div id="border-top" class="h_teal">-->
      <span class="title">Advance World Wide I.T. Solution</span>
</div>
<div id="content-box">
  <div class="padding">
    <div id="element-box" class="login">
      <div class="t">
        <div class="t">
          <div class="t"></div>
        </div>
      </div>
      <div class="m">
        <h1>Administration Login</h1>
        <div id="section-box">
          <div class="t">
            <div class="t">
              <div class="t"></div>
            </div>
          </div>
          
          <div class="m">
	      <form id="loginForm" name="loginForm" method="POST" action="?module=<?=DEFAULT_MODULE?>&action=Login" style="clear: both;" >
                <!--USERNAME-->
                <p id="form-login-username">
                  <label for="modlgn_username">Username</label>
                  <input name="username" type="text" class="inputbox" size="15" />	
                </p>
                <!--PASSWORD-->
                <p id="form-login-password">
                  <label for="modlgn_passwd">Password</label>
                  <input name="pass" type="password" class="inputbox" size="15" />
                </p>
               <!--<p id="form-login-lang" style="clear: both;">
                  <label for="lang">Language</label>
                  <select name="lang" id="lang"  class="inputbox"><option value=""  selected="selected">Default</option><option value="en-GB" >English (United Kingdom)</option></select>
                </p>-->
                
                <div class="button_holder">
                  <div class="button1">
	              <input type="submit" name="flag" class="next" value="Login">
                  </div>
                </div>
                
                <div class="clr"></div>
              </form>
	       
               <div class="clr"></div>
            </div>
            <div class="b">
              <div class="b">
                <div class="b"></div>
              </div>
            </div>
          </div>
	      <p>Welcome to <?php global $config; echo $config['title'];?>!</p>
          
          <p>Use a valid username and password to gain access to the Text Messaging Console.</p>
          <p><a href="http://localhost/MCS-SMS/">Return to site Home Page</a></p>
       
          <div id="lock"></div>
          <div class="clr"></div>
      </div>
      <div class="b">
        <div class="b">
          <div class="b"></div>
        </div>
      </div>
    </div>
    
    <noscript>Warning! JavaScript must be enabled for proper operation of the Administrator back-end.</noscript>
    <div class="clr"></div>
  </div>
</div>
  <div id="border-bottom"><div><div></div></div>
</div>            
<br>
<?php require('footer.php'); ?>
</body>
</html>
